<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button onclick="stop()">点击停止</button>
</body>
</html>
<script>
    var aa=setInterval(function(){
        console.log('牢大肘击丛章旭');
        
    },3000)
    function stop(){
        clearInterval(aa)
    }
</script>